package com.bytz.modules.cms.reseller.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bytz.modules.cms.reseller.entity.ResellerLevel;
import com.bytz.modules.cms.reseller.entity.ResellerLevelChange;
import com.bytz.modules.cms.reseller.model.ResellerModel;

import java.util.List;

/**
 * <p>
 * 莱宝CMS—经销商管理—经销商/产品线等级关联表 服务类
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
public interface IResellerLevelService extends IService<ResellerLevel> {

    /**
     * 根据经销商id查询
     */
    List<ResellerLevel> getByResellerId(String resellerId);

    /**
     * 根据经销商id获取对应的等级名称
     */
    List<String> getLevelNameByResellerId(String resellerId);

    /**
     * 根据model保存
     */
    void saveLevelByResellerModel(ResellerModel saveRo);
}
